﻿using System;
using System.Collections.Generic;

namespace SmartCommunity.Models;

/// <summary>
/// 操作日志
/// </summary>
public partial class LogEntity
{
    /// <summary>
    /// 日志ID
    /// </summary>
    public long LogId { get; set; }

    /// <summary>
    /// 操作类型
    /// </summary>
    public int OperateType { get; set; }

    /// <summary>
    /// 日志类别(简短描述)
    /// </summary>
    public string LogTitle { get; set; } = null!;

    /// <summary>
    /// 日志内容
    /// </summary>
    public string LogContent { get; set; } = null!;

    /// <summary>
    /// 请求URL
    /// </summary>
    public string? RequestPath { get; set; }

    /// <summary>
    /// 请求方式
    /// </summary>
    public string? RequestMethod { get; set; }

    /// <summary>
    /// 请求参数
    /// </summary>
    public string? RequestParam { get; set; }

    /// <summary>
    /// 是否执行成功
    /// </summary>
    public bool Success { get; set; }

    /// <summary>
    /// 执行时长,毫秒
    /// </summary>
    public int ExecuteTime { get; set; }

    /// <summary>
    /// 客户端IP
    /// </summary>
    public string? ClientIp { get; set; }

    /// <summary>
    /// 客户端操作系统
    /// </summary>
    public string? ClientOs { get; set; }

    /// <summary>
    /// 客户端浏览器
    /// </summary>
    public string? ClientBrowser { get; set; }

    /// <summary>
    /// 操作人
    /// </summary>
    public string CreatedBy { get; set; } = null!;

    /// <summary>
    /// 操作时间
    /// </summary>
    public DateTime CreatedTime { get; set; }
}
